package jp.ne.hatena.d.digitalsoul.warikan.repositories

import jp.ne.hatena.d.digitalsoul.warikan.inject._
import jp.ne.hatena.d.digitalsoul.warikan.models._
import jp.ne.hatena.d.digitalsoul.warikan.repositories.impl._

object PartyRepository {
	
	val repository:PartyRepositoryImpl = Injector.getInstance(classOf[PartyRepositoryImpl])
	
	def nextId:String = repository.nextId
	
	def add(party:Party) = repository.add(party)
	
	def forPartyId(id:String):Option[Party] = repository.forPartyId(id)
	
	def forAll:List[Party] = repository.forAll
	
	def paymentOf(id:String, name:String) = repository.paymentOf(id, name)
	
}